<?php
namespace iBrand\Component\Recharge\Models;

use Illuminate\Database\Eloquent\Model;
use DB;
use iBrand\Shop\Core\Models\User;


class BalanceOrder extends Model
{
    protected $table = 'el_balance_order';

    protected $guarded = ['id'];

    public function  recharge(){
        return $this->hasOne(RechargeRule::class,'id','recharge_rule_id');
    }

    public function  user(){
        return $this->hasOne(User::class,'id','user_id');
    }
}

